package com.cableex.mmb_mtj_android_v1;

import android.app.Application;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;

/**
 * Created by ${Dota.Wang} on 2017/4/21.
 */
public class StartServiceMMB {
    private static String TAG = "StartServiceMMB";
    public StartServiceMMB() {
    }

    public static synchronized void onPageStartMMB(String post_hostURL, Context var0, Application application, String event, String memberId, String KeyWords, String method, String productId, String way){
        if(var0 != null && !TextUtils.isEmpty(SystemInfo.getImei(var0))) {
            JsonStringUtils.login(post_hostURL,"2", SystemInfo.getImei(var0),SystemInfo.getAppName(var0,application),SystemInfo.getVersionCode(var0,application),SystemInfo.getModelType(var0),event,memberId,KeyWords,method,productId,way);
            Log.i(TAG,"*******onPageStart=");
            Log.i(TAG,"*******System.currentTimeMillis()=" + System.currentTimeMillis());
        }else {
            Log.i(TAG,"onPageStart :parame=null || empty");
        }
    }


    public static synchronized void onPageEndMMB(String post_hostURL, Context var0, Application application, String event, String memberId, String KeyWords, String method, String productId, String way){
        if(var0 != null && !TextUtils.isEmpty(SystemInfo.getImei(var0))) {
            JsonStringUtils.login(post_hostURL,"2", SystemInfo.getImei(var0),SystemInfo.getAppName(var0,application),SystemInfo.getVersionCode(var0,application),SystemInfo.getModelType(var0),event,memberId,KeyWords,method,productId,way);
            Log.i(TAG,"*******onPageEnd=");
            Log.i(TAG,"*******System.currentTimeMillis()=" + System.currentTimeMillis());
        }else {
            Log.i(TAG,"onPageEnd :parame=null || empty");
        }
    }
}
